import 'package:study_online/global/global.dart';

Future getCourseInfoById(int couId) async {
  return await Global.getInstance().dio.get(
    "/cou/id",
    queryParameters: {
      "couId": couId,
    },
  );
}

Future getCategoryByCouId(int couId) async {
  return await Global.getInstance().dio.get(
    "/cou/list",
    queryParameters: {
      "couId": couId,
    },
  );
}

Future getRemarkBycouIdType(int couId,int type) async {
  return await Global.getInstance().dio.get(
    "/cou/remark",
    queryParameters: {
      "couId": couId,
      "type": type,
    },
  );
}

Future getMyCourseListByIdType(String stuId,String type) async {
  return await Global.getInstance().dio.get(
    "/cou/my",
    queryParameters: {
      "stuId": stuId,
      "type": type,
    },
  );
}

Future getCourseScoreById(int couId) async {
  return await Global.getInstance().dio.get(
    "/cou/score",
    queryParameters: {
      "couId": couId,
    },
  );
}

